#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"toolgroup.h"
#include<QImage>
#include<QLabel>
#include<QGridLayout>
#include<opencv2/opencv.hpp>
#include"imgarea.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    cv::Mat calc(cv::Mat& fog,int darkRadius,double tMin,double omega,int guideRadius,double guideEps);
    ~MainWindow();
    void updateImageSlot();
private:
    ToolGroup *darkChanelRadius,*tMin,*omega,*guideRadius,*guideEps;
    cv::Mat fogImg;
    ImgArea *beforeImg;
    ImgArea *tHatImg;
    ImgArea *imgarea;
    QGridLayout *pg;
};
#endif // MAINWINDOW_H
